﻿using System;
using System.Collections.Generic;
using System.Web;

namespace MikeKappel.Com.CS
{
    public static partial class Globalization
    {
        /// <summary>
        /// IDN (Internationalized Domain Name)
        /// This method Translates ASCII (American Standard Code for Information Interchange) To Unicode (multi-language characters)
        /// Web Service Available at http://MichaelKappel.com/wsIDN.asmx
        /// <example>Input "xn--ztt.com" result "帝.com"</example>
        /// </summary>
        /// <param name="domain">English Domain Name</param>
        /// <returns>International Domain Name</returns>
        public static String IdnEnglishToInternationalized(String domain)
        {
            return (new System.Globalization.IdnMapping()).GetUnicode(domain);
        }
    }
}